<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>收银台 - 我的管理中心</title>
{include file="head"}
<link href="/static/thinkct/css/basic.css?v=1" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/jquery.m.js"></script><script language="javascript" src="/static/thinkct/js/layui/layui.js"></script><script language="javascript" src="/static/thinkct/js/common.js?v=1"></script><script language="javascript" src="/static/thinkct/js/member.js?v=1"></script><link href="/static/thinkct/css/member.css?v=1" rel="stylesheet" type="text/css" /><link href="/static/thinkct/js/layui/css/layui.css" rel="stylesheet" type="text/css" /><script language="javascript" src="/static/thinkct/js/tipso.min.js"></script></head>
<body>
<!--头部-->
{include file="uhead"}

<!--头部-->
<div class="umain">
{include file="uleft"}  
<div class="uright">
<div class="carpay">
<ul class="u1">
 <li class="l1">您正在使用{:sysconf('site_name')}收银台功能</li>
 <li class="l2">类型：收银台结算</li>
 <li class="l3">共计：<strong class='total'>{$nowmoney}</strong> 元 </li>
</ul>
<div class="ch_pay">
<div class="pu3">
<ul class="tit"><li class="l1">商品</li><li class="l2">商家</li><li class="l3">单价</li></ul>
{volist name="list" id="v"}<ul>
<li class="l1"><a href="{$v.link}" title="{$v.tit} " target="_blank"><span>{$i}.</span><strong>{$v.typename}</strong> {$v.tit} </a></li>
<li class="l3">{$v.zonghe} = <strong>{$v.money}</strong>元</li>
<li class="l2"><span class='note_icon'>{$v.note_icon}</span>{$v.name}</li>
</ul>{/volist}
</div>
 
<form name="" class='layui-form' method="post" action="/member/pay/" target="_blank">  
{if($user.money > 0)}
<ul class="pu1">
<li class="l1"><input name='balance' type='checkbox' checked value='{$user.money}'><span>账号可用余额 <strong>{$user.money}</strong> 元</span></li>
<li class="l2">支付 <strong>{$user.money}</strong> 元</li>
</ul>{/if}
	
 <div class="third-party" {if($nowmoney <= $user.money)}style="display:none"{/if}>
  <ul class="pu1">
	  <li class="l1">请在下方选择其他支付方式</li>
	  <li class="l2">支付 <strong class='third-party-money'>{$nowmoney - $user.money}</strong> 元</li>
  </ul>
  
  
  
	<div class="pay-groups-tabs">
		<li>
		<label class='cur' data-pay='three'>第三方支付</label>
					<label for='g' data-pay='individual'>个人网银支付</label>
			<label for='q' data-pay='company'>企业网银支付</label>
					<label for='q' data-pay='public' style="display:none">线下对公汇款</label>
		</li>
	</div>

	<div class="pay-channel-list dspay" data-box="three">
		{volist name="paylist" id="v"}
			<span {if $i==1}class="cur"{/if} data-gate='{$v.type}'><i class="BANK-ICO ICON-{:strtoupper($v.type)}"></i><em></em></span>		
		{/volist}
	</div>
					<div class="pay-channel-list" data-box="individual" style="display:none">
			<span data-gate="工商银行"><i class="BANK-ICO ICON-ICBC"></i><em></em>工商银行</span><span data-gate="农业银行"><i class="BANK-ICO ICON-ABC"></i><em></em>农业银行</span><span data-gate="中国银行"><i class="BANK-ICO ICON-BOC"></i><em></em>中国银行</span><span data-gate="建设银行"><i class="BANK-ICO ICON-CCB"></i><em></em>建设银行</span><span data-gate="交通银行"><i class="BANK-ICO ICON-COMM"></i><em></em>交通银行</span><span data-gate="邮政银行"><i class="BANK-ICO ICON-PSBC"></i><em></em>邮政银行</span><span data-gate="中信银行"><i class="BANK-ICO ICON-CITIC"></i><em></em>中信银行</span><span data-gate="光大银行"><i class="BANK-ICO ICON-CEB"></i><em></em>光大银行</span><span data-gate="民生银行"><i class="BANK-ICO ICON-CMBC"></i><em></em>民生银行</span><span data-gate="广发银行"><i class="BANK-ICO ICON-GDB"></i><em></em>广发银行</span><span data-gate="招商银行"><i class="BANK-ICO ICON-CMB"></i><em></em>招商银行</span><span data-gate="兴业银行"><i class="BANK-ICO ICON-CIB"></i><em></em>兴业银行</span><span data-gate="浦发银行"><i class="BANK-ICO ICON-SPDB"></i><em></em>浦发银行</span><span data-gate="上海银行"><i class="BANK-ICO ICON-SHBANK"></i><em></em>上海银行</span><span data-gate="平安银行"><i class="BANK-ICO ICON-SPABANK"></i><em></em>平安银行</span><span data-gate="华夏银行"><i class="BANK-ICO ICON-HXBANK"></i><em></em>华夏银行</span><span data-gate="北京银行"><i class="BANK-ICO ICON-BJBANK"></i><em></em>北京银行</span><span data-gate="南京银行"><i class="BANK-ICO ICON-NJCB"></i><em></em>南京银行</span><span data-gate="杭州银行"><i class="BANK-ICO ICON-HZBANK"></i><em></em>杭州银行</span><span data-gate="浙商银行"><i class="BANK-ICO ICON-CZBANK"></i><em></em>浙商银行</span><span data-gate="渤海银行"><i class="BANK-ICO ICON-CBHB"></i><em></em>渤海银行</span><span data-gate="上海农商行"><i class="BANK-ICO ICON-SRCB"></i><em></em>上海农商行</span><span data-gate="北京农商行"><i class="BANK-ICO ICON-BJRCB"></i><em></em>北京农商行</span>		</div>
				<div class="pay-channel-list" data-box="company" style="display:none">
			<span data-gate="工商银行"><i class="BANK-ICO ICON-ICBC"></i><em></em>工商银行</span><span data-gate="农业银行"><i class="BANK-ICO ICON-ABC"></i><em></em>农业银行</span><span data-gate="中国银行"><i class="BANK-ICO ICON-BOC"></i><em></em>中国银行</span><span data-gate="建设银行"><i class="BANK-ICO ICON-CCB"></i><em></em>建设银行</span><span data-gate="交通银行"><i class="BANK-ICO ICON-COMM"></i><em></em>交通银行</span><span data-gate="中信银行"><i class="BANK-ICO ICON-CITIC"></i><em></em>中信银行</span><span data-gate="光大银行"><i class="BANK-ICO ICON-CEB"></i><em></em>光大银行</span><span data-gate="广发银行"><i class="BANK-ICO ICON-GDB"></i><em></em>广发银行</span><span data-gate="招商银行"><i class="BANK-ICO ICON-CMB"></i><em></em>招商银行</span><span data-gate="兴业银行"><i class="BANK-ICO ICON-CIB"></i><em></em>兴业银行</span><span data-gate="浦发银行"><i class="BANK-ICO ICON-SPDB"></i><em></em>浦发银行</span><span data-gate="北京银行"><i class="BANK-ICO ICON-BJBANK"></i><em></em>北京银行</span><span data-gate="平安银行"><i class="BANK-ICO ICON-SPABANK"></i><em></em>平安银行</span><span data-gate="邮储银行	"><i class="BANK-ICO ICON-PSBC"></i><em></em>邮储银行	</span><span data-gate="民生银行	"><i class="BANK-ICO ICON-CMBC"></i><em></em>民生银行	</span><span data-gate="上海银行	"><i class="BANK-ICO ICON-SHBANK"></i><em></em>上海银行	</span><span data-gate="贵州银行	"><i class="BANK-ICO ICON-BGZCHINA"></i><em></em>贵州银行	</span><span data-gate="华夏银行	"><i class="BANK-ICO ICON-HXBANK"></i><em></em>华夏银行	</span><span data-gate="杭州银行	"><i class="BANK-ICO ICON-HZBANK"></i><em></em>杭州银行	</span><span data-gate="青岛银行	"><i class="BANK-ICO ICON-QDCCB"></i><em></em>青岛银行	</span><span data-gate="宁波银行	"><i class="BANK-ICO ICON-NBCB"></i><em></em>宁波银行	</span><span data-gate="天津银行	"><i class="BANK-ICO ICON-TJCB"></i><em></em>天津银行	</span><span data-gate="上海农商行"><i class="BANK-ICO ICON-SRCB"></i><em></em>上海农商行</span>		</div>
				<div class="pay-channel-list"  data-box="public" style="display:none">
		<cite class="publicTips"><div class="icons"></div>您可以通过网银、柜台等方式汇款至{:sysconf('site_name')}对公账户；转账完成后凭相关单据，联系网站底部的{:sysconf('site_name')}客服QQ，查账并入款！</cite>
		<div class='paying'>
			<dl style='border:0'>
				<dt>
					<img src='/static/thinkct/image/boc_logo.png'>
				</dt>
				<dd>
					<div>开户名称：</div>xxxxxxxx<br><div>开户银行：</div>中国xxxxx支行<br><div>开户帐号：</div>xxxxxxxxxxx<br>
				</dd>
			</dl>
		</div>
	</div>
</div>
  {if($user.money > 0)}
  <ul class="safe postbox">
  <li class="l1">安全检测：请输入您的安全码</li>
  <li class="l2"><input name="safe" class="layui-input" value="" lay-verify="cashiersafe" type="password" placeholder="请输入安全码" style="border:#56aa16 solid 1px;"></li>
  </ul>{/if}
 <div class="layui-form-item postbox" style="padding-top:10px;">
    <div class="layui-inline"><input type="submit" class="layui-btn layui-btn-danger" style='width:120px;font-size:14px;line-height:35px;height:35px;'  lay-filter="cashier" lay-submit="" value="确认付款"></div>
</div>
<input type="hidden" value="three" name="bank" />
<input type="hidden" value="alipay" name="gate" />
<input type="hidden" value="{$bh}" name="bh" />
<input type="hidden" value="cashier" name="action" />
<input type="hidden" value="{:passkey()}" name="passkey" />
</form>
</div>
</div>
</div>
</div>
{include file="bottom"}<script language="javascript">
 layui.use('form', function(){
  var form = layui.form();
	 form.verify({
		cashiersafe: function(value){
			  if($('input[name=balance]').is(':checked') || $('input[name=trust]').val()>0){
				  if(!/(?=^.*?\d)(?=^.*?[a-zA-Z])^[0-9a-zA-Z_~!@#$%^&^&$]{6,20}$/.test(value)) return "安全码不少于6位，且同时包含数字+字母";
						var message = '';
						$.ajax({
							async: false,
							url: '/aform/index/safe',
							data:{str: value},
							dataType: 'json',
							type: 'POST',
							success: function(result) {
								if(!result.state) message = result.info;
							},error: function(){
								message =  '网络异常，请重试！';
							}
						});
						if (message !== '') 
							return message;
		  　}
		}
	});
	form.on('checkbox', function(data){
		var total=parseFloat($(".total").html()),uul=$(data.elem).closest("ul");
		if(data.elem.checked){
		uul.removeClass("uncheck");
		$(".safe").show();
		(total<=data.elem.value)?$(".third-party").hide():($(".third-party").show())+($(".third-party-money").html(toDecimal2(total-data.elem.value)));
		}else{
		uul.addClass("uncheck");
		$(".safe").hide();
		$(".third-party").show();
		$(".third-party-money").html(toDecimal2(total));
		}
	});

	form.on('submit(cashier)', function(data) {
						Resulting('cashier');
		return true;
	});

	$(".pu1 span").click(function(){
		$(this).prev("div").click();
	});

	 });

</script>
</body>
</html>